-
Notifications
You must be signed in to change notification settings - Fork 360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CORL-3216]: replace giphy/react-components with shared GifGrid for Giphy/Tenor #4731
Conversation
✅ Deploy Preview for gallant-galileo-14878c canceled.
|
import { GifSearchInput } from "../GifSearchInput/GifSearchInput"; | ||
import GiphyAttribution from "./GiphyAttribution"; | ||
|
||
import styles from "./GiphyInput.css"; | ||
|
||
const APPROX_COL_WIDTH = 120; | ||
const DEBOUNCE_DELAY_MS = 1250; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
heh, this is roughly what I had before they told me to lower it 🤣
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm I just used the same as our current Tenor debounce delay...is it supposed to be lower?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works well in testing and code looks good!
What does this PR do?
These changes:
@giphy/react-components
,@emotion/cache
, and@emotion/core
EmotionShadowRoot
since that was there to support the@giphy/react-components
These changes will impact:
What changes to the GraphQL/Database Schema does this PR introduce?
none
Does this PR introduce any new environment variables or feature flags?
no
If any indexes were added, were they added to
INDEXES.md
?n/a
How do I test this PR?
pnpm install
to get latest dependency updates inclient
You can test this PR by testing both Giphy and Tenor gif functionality. They can be toggled between in
Configure
-->General
-->Embedded Media
.Their grids should function the same way now. When you search, you should see the gifs and have ability to load more and select your gif of choice to add to a comment. Try different searches and combinations of new searches and loading more.
Were any tests migrated to React Testing Library?
no
How do we deploy this PR?